// import {
//   ElMenuItem,
//   ElSubmenu,
//   ElMenu,
//   ElTabs,
//   ElTabPane,
//   ElTree,
//   ElDropdownMenu,
//   ElDropdownItem,
//   ElDropdown,
//   ElEmpty,
//   ElDialog,
//   ElTransfer,
//   ElSpace,
//   ElCalendar,
//   ElCollapse,
//   ElCollapseItem,
//   ElDivider,
//   ElDrawer,
//   ElButton,
//   ElButtonGroup,
//   ElPagination,
//   ElInput,
//   ElInputNumber,
//   ElSelect,
//   ElOptionGroup,
//   ElCascader,
//   ElCheckboxGroup,
//   ElCheckbox,
//   ElRadioGroup,
//   ElRadio,
//   ElDatePicker,
//   ElTimePicker,
//   ElUpload,
//   ElRate,
//   ElSwitch,
//   ElScrollbar,
//   ElPopper,
//   ElTag,
//   ElSlider,
//   ElOption,
//   ElTooltip,
//   ElTable,
//   ElTableColumn,
//   ElForm,
//   ElFormItem
// } from 'element-plus';
import { App } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// import 'element-plus/lib/theme-chalk/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

export default {
  install(app: App): void {
    app.use(ElementPlus);
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
    // app
    //   .use(ElMenu)
    //   .use(ElSubmenu)
    //   .use(ElMenuItem)
    //   .use(ElTabs)
    //   .use(ElTabPane)
    //   .use(ElEmpty)
    //   .use(ElTree)
    //   .use(ElDropdown)
    //   .use(ElDropdownMenu)
    //   .use(ElDropdownItem)
    //   .use(ElDialog)
    //   .use(ElSpace)
    //   .use(ElTransfer)
    //   .use(ElCalendar)
    //   .use(ElCollapse)
    //   .use(ElCollapseItem)
    //   .use(ElDivider)
    //   .use(ElDrawer);
    //
    // app
    //   .use(ElButton as any)
    //   .use(ElButtonGroup as any)
    //   .use(ElTable)
    //   .use(ElTableColumn)
    //   .use(ElForm)
    //   .use(ElFormItem)
    //   .use(ElPagination as any)
    //
    //   .use(ElInput as any)
    //   .use(ElInputNumber as any)
    //   .use(ElSelect as any)
    //   .use(ElOption as any)
    //   .use(ElOptionGroup as any)
    //   .use(ElCascader as any)
    //   .use(ElCheckboxGroup as any)
    //   .use(ElCheckbox as any)
    //   .use(ElRadioGroup as any)
    //   .use(ElRadio as any)
    //   .use(ElDatePicker as any)
    //   .use(ElTimePicker as any)
    //   .use(ElUpload as any)
    //   .use(ElRate as any)
    //   .use(ElSwitch as any)
    //   .use(ElScrollbar as any)
    //   .use(ElPopper as any)
    //   .use(ElTag as any)
    //   .use(ElTooltip as any)
    //   .use(ElSlider as any);
  }
};
